package com.aaa.charge.api.ChargeLiat;


import com.aaa.charge.service.ChargeItemService;
import com.aaa.entity.OrderChargeItem;
import com.aaa.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;


/**
 * @author pzs
 * @date 2023/3/24 17:01
 * @description ApiBackfeeItemController
 */
@RestController
@RequestMapping("charge/api/orderChargeItem")
public class ApiChargeItemController {

    @Resource
    private ChargeItemService orderChargeItemService;

    /**
     * 收费列表
     *查询详情
     * @return
     */
    @GetMapping("allChargeItem/{orderId}")
    public Result<List<OrderChargeItem>> allChargeItem(@PathVariable String orderId){
        return orderChargeItemService.allChargeItem(orderId);
    }
}
